<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<script type="text/javascript">
<!--
	function goPage(page){
		var pageForm = document.forms[0];
		pageForm.method = "get";
		pageForm.currentPage.value = page;
		pageForm.submit();
	}
//-->
</script>
<input type="hidden" name="currentPage" value="${pageResult.currentPage}"/>
<img
	src="/admin/include/images/refresh.gif" style="cursor: pointer" title="刷新" onclick="window.location.reload();"/>
&nbsp;&nbsp;
<c:if test="${pageResult.currentPage <= 1}">
<img
	src="/admin/include/images/first_off.gif" />
</c:if>
<c:if test="${pageResult.currentPage > 1}">
<img
	src="/admin/include/images/first_on.gif" style="cursor: pointer" title="第一页" onclick="goPage(1)"/>
</c:if>
&nbsp;&nbsp;
<c:if test="${pageResult.currentPage <= 1}">
<img
	src="/admin/include/images/previous_off.gif" />
</c:if>
<c:if test="${pageResult.currentPage > 1}">
<img
	src="/admin/include/images/previous_on.gif" style="cursor: pointer" title="上一页" onclick="goPage(${pageResult.currentPage - 1})"/>
</c:if>
&nbsp;&nbsp;
<c:forEach begin="${(pageResult.currentPage - 2) < 1 ? 1 : (pageResult.currentPage - 2)}" end="${(pageResult.currentPage + 2) > pageResult.totalPages ? pageResult.totalPages : (pageResult.currentPage + 2)}" var="page">
	<c:if test="${page == pageResult.currentPage}"><b>${page}</b></c:if>
	<c:if test="${page != pageResult.currentPage}"><span style="cursor: pointer" title="第${page}页" onclick="goPage(${page})">${page}</span></c:if>
	&nbsp;&nbsp;
</c:forEach>
<c:if test="${pageResult.currentPage >= pageResult.totalPages}">
<img
	src="/admin/include/images/next_off.gif" />
</c:if>
<c:if test="${pageResult.currentPage < pageResult.totalPages}">
<img
	src="/admin/include/images/next_on.gif" style="cursor: pointer" title="下一页" onclick="goPage(${pageResult.currentPage + 1})"/>
</c:if>
&nbsp;&nbsp;
<c:if test="${pageResult.currentPage >= pageResult.totalPages}">
<img
	src="/admin/include/images/last_off.gif" />
</c:if>
<c:if test="${pageResult.currentPage < pageResult.totalPages}">
<img
	src="/admin/include/images/last_on.gif" style="cursor: pointer" title="最后一页" onclick="goPage(${pageResult.totalPages})"/>
</c:if>
&nbsp;&nbsp;
每页显示 ${pageResult.pageRows} 条&nbsp;&nbsp;当前 ${pageResult.firstRow} -
${pageResult.lastRow} 条 / 共 ${pageResult.totalRows} 条&nbsp;&nbsp;第
<select onchange="goPage(this.value)">
<c:forEach begin="1" end="${pageResult.totalPages}" var="page">
	<option value="${page}" <c:if test="${page == pageResult.currentPage}">selected</c:if>>
		${page}
	</option>
</c:forEach>
</select>
页 / 共 ${pageResult.totalPages} 页
